import java.util.Enumeration;

public class ArrayEnumeration implements Enumeration {
	private Object[] array;
	private int index;

	public ArrayEnumeration(Object[] array) {
		this.array = array;
		this.index = 0;
	}

	public boolean hasMoreElements() {
		return this.index < this.array.length;
	}

	public Object nextElement() {
		return this.array[(this.index++)];
	}
}